package com.ecloud.gardensterminal.controller.dto;

import com.alibaba.fastjson.JSON;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author Squbi
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class GardensAreaDto {
    private String areaName;
    private String areaDescription;

    public GardensAreaDto(String json) {
        GardensAreaDto dto = JSON.parseObject(json, this.getClass());
        this.areaName = dto.getAreaName();
        this.areaDescription = dto.getAreaDescription();
    }
}
